<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<title>点点例</title>
		<link rel="stylesheet" type="text/css" href="./css/aui/aui-win.css" />
		<style type="text/css">
		</style>
	</head>
	<body></body>
	<script type="text/javascript" src="./script/AHelper.js"></script>
	<script type="text/javascript" src="./script/zepto.min.js"></script>
	<script type="text/javascript">
		H.ready(function() {
			// 移除启动页
			setTimeout(function() {
				api.removeLaunchView({
					animation : {
						type : 'fade',
						duration : 500
					}
				});
			}, 3000);
			// 已经安装过了就无需查看启动画
			H.$getPrefs(function(ret, err) {
				if (ret && ret.value) {
					// 判断是否已登录
					H.$getPrefs(function(ret, err) {
						if (ret && ret.value) {
							H.$openSlidLayout(function(ret, err) {
							}, {
								name : 'silde',
								url : './html/slide/slide_head.html'
							}, {
								name : 'index',
								url : './html/index_head.html'
							});
						} else {
							H.$openWin('login_head', './html/login/login_head.html');
						}
					}, 'user_info');
				} else {
					H.$openWin('launch', './html/launch.html', {})
				}
			}, 'launch');
		});
	</script>
</html>